package com.sgmder.demo.remoteapi;

import com.sgmder.demo.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("user-service")
public interface RemoteUserService {

    @GetMapping("/user/{id}")
    User getUserById(@RequestParam("id") Long userId);
}
